import service from "@/utils/request.js";
import qs from 'qs';

const userApi = {
	captcha() {
		return service.get("/service/captcha");
	},
	register(userInfo) {
		return service.post("/user/register", userInfo);
	},
	login(userInfo) {
		return service.post("/user/login", userInfo);
	},
	userInfo() {
		return service.get("/user/userInfo");
	}
};


export default userApi;